#include <stdio.h>
#include <memory>
#include "http_post.h"




int main(int argv, char**argc)
{

    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
    // HttpPost* http;
    std::string postUrlStr = "192.168.1.240:8000/api/token/";
    std::string strJson = "{";
        strJson += "\"username\" : \"rcs\",";
        strJson += "\"password\" : \"123456\"";
        strJson += "}";
    HttpPost::getInstance()->setHeader("Content-Type:application/json;charset=UTF-8");

    HttpPost::getInstance()->curlPostReq(postUrlStr, strJson);
    return 0;
}



